package cn.edu360;

import org.apache.log4j.Logger;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 日志采集系统启动
 * 
 * @author Lenovo
 *
 */
public class DataLogCollectorApplicatStartAndClean {

	private static final Logger LOGGER = Logger.getLogger(DataLogCollectorApplicatStartAndClean.class);

	public static void main(String[] args) throws InterruptedException {
		new ClassPathXmlApplicationContext("classpath:spring-context.xml");

//		while (true) {
//			System.out.println("==== 打印日志开始 ===");
//			LOGGER.error("测试异常信息 ： ----> 测试异常");
//			System.out.println("==== 打印日志结束===");
//			Thread.sleep(3000);
//		}

	}

}
